﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SubsidyApp.Models.BasesDescription.site_model>" %>
<table>
    <tr>
        <th>
            Login
        </th>
        <th>
            Email
        </th>
        <th>
            Registration Date
        </th>
    </tr>
    <%
        foreach (var elem in ViewData.Model.modelcontent as IQueryable<site_user>)
        {
    %>
    <tr>
        <td>
            <%= Html.ActionLink(elem.user_login, "Edit", new { category = ViewData.Model.type, id = elem.id }) %>
        </td>
        <td>
            <%= (Html.Encode(elem.user_email)) %>
        </td>
        <td>
            <%= (Html.Encode(elem.user_registeger)) %>
        </td>
        <td style="width:20px;">
            <% using (Html.BeginForm("Delete", "Admin", new { id = elem.id, category = ViewData.Model.type }))
               { %>
            <input type="image" src="<%= AppHelper.ImgUrl("delete_16.png") %>" />
            <% } %>
        </td>
    </tr>
    <%
        }
    %>
</table>
